﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace LiteratureManage.Domain.DataBackup
{
    public class DefaultDBBackupFileNameGenerator : IDBBackupFileNameGenerator
    {
        //private readonly string _backupRootDir;

        public DefaultDBBackupFileNameGenerator()
        {
            //this._backupRootDir = backupRootDir;
        }

        #region IFileNameGenerator Members

        public string Generate(DateTime theDate)
        {
            return String.Format("{0}-{1}", theDate.ToString("yyyy-MM-dd"), DateTime.Now.ToString("yyyyMMddHHmmss"));
        }

        #endregion
    }
}
